package com.typhoon.spring_boot_demo1.manager;

import com.typhoon.spring_boot_demo1.bean.User;
import com.typhoon.spring_boot_demo1.dao.User2Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userManager")
public class UserManager {

    @Autowired
    private User2Dao user2Dao;

    public User queryById(Long id) {
        return this.user2Dao.queryByPk(id);
    }
}
